package com.ybwh.springboot1.model.vo;

import java.util.Collections;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import lombok.Data;

/**
 * @author DataTable服务端返回数据
 *
 * @param <T>
 */
@Data
public class DataTabelPageVo<T> {
	/**
	 * 所有的总件数
	 */
	private int recordsTotal;

	/**
	 * 筛选后的总件数
	 */
	private int recordsFiltered;

	/**
	 * 列表数据
	 */
	private List<T> data = Collections.EMPTY_LIST;

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
	}

}
